package com.wu.ssm.study.modifier;

/**
 * Created by wzf on 2018/11/19/019.
 */
 public class A {
    public String a1 = "nan";
    protected String a2 = "18";
    private String a3 = "zhangsan";
    String a4 = "18";


    public void say1(){
        System.out.println("public");
    }
    protected void say2(){
        System.out.println("protected");
    }
    private void say3(){
        System.out.println("private");
    }
    void say4(){
        System.out.println("defaut");
    }

    public String getA1() {
        return a1;
    }

    public void setA1(String a1) {
        this.a1 = a1;
    }

    public String getA2() {
        return a2;
    }

    public void setA2(String a2) {
        this.a2 = a2;
    }

    public String getA3() {
        return a3;
    }

    public void setA3(String a3) {
        this.a3 = a3;
    }

    public String getA4() {
        return a4;
    }

    public void setA4(String a4) {
        this.a4 = a4;
    }
}
